
package com.scs.application.modules.base.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.modules.base.entity.HospitalMaterial;
import com.scs.application.modules.base.request.HospitalMaterialQueryRequest;
import com.scs.application.modules.base.vo.HospitalMaterialVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * HospitalMaterial mapper对象
 */
@Mapper
public interface HospitalMaterialMapper extends BaseMapper<HospitalMaterial> {

    /**
     * 院方接口 商品查询
     *
     * @param page
     * @param request
     * @return
     */
    IPage<HospitalMaterial> page(IPage page, @Param("request") HospitalMaterialQueryRequest request);

    /**
     * 采购订单-订单明细，关键字搜索
     *
     * @param page
     * @param request
     * @return
     */
    IPage<HospitalMaterial> pageByKeyword(IPage page, @Param("request") HospitalMaterialQueryRequest request);

    List<HospitalMaterial> list(@Param("request") HospitalMaterialQueryRequest request);

    int countForSupplier(@Param("request") HospitalMaterialQueryRequest request);

    List<HospitalMaterialVO> listVO(@Param("request") HospitalMaterialQueryRequest request);

    HospitalMaterial getOneHospitalMaterial(@Param("request") HospitalMaterialQueryRequest request);


    int insertBatchSomeColumn(@Param("list") List<HospitalMaterial> entityList);
}
